<?php
    class Form_login extends Zend_Form {
        
        public function init () {
            $controller = Zend_Controller_Front::getInstance();
            
            $username = $this->createElement('text', 'username');
            $username->addFilter('StringTrim');
            $username->setRequired(TRUE);
            $username->addFilter('StringTrim');
            $username->setAttribs(array('class'=>'inputStyle','maxlength'=>'50','order'=>1));
            //$username->addErrorMessage("Por favor ingrese su nombre.");
            $this->addElement($username);
            
            $password = $this->createElement('password', 'password');
            $password->addFilter('StringTrim');
            $password->setRequired(TRUE);
            $password->addFilter('StringTrim');
            $password->setAttribs(array('class'=>'inputStyle','maxlength'=>'50','order'=>2));
            //$password->addErrorMessage("Por favor ingrese su contraseña.");
            $this->addElement($password);
            
            $SaveNotification = $this->createElement('submit', 'SaveNotification');
            $SaveNotification->setLabel('Acceder');
            $this->addElement($SaveNotification);
            
            $cancel = $this->createElement('reset','cancel', array('Label' =>'Cancel','onclick'=>'closeWin()'));
            $this->addElement($cancel);
            
            $this->setElementDecorators(array(
                array('ViewHelper'),
                array('Errors'),
            ));
        }
    }
?>